From: Edgar E. Iglesias Date: Thu, 26 Jan 2017 13:16:00 +0000 (+0100) Subject: xen/arm: dt: Relax hw domain mapping attributes to p2m_mmio_direct_c X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2875 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=18d500642fbae98beafcbf1bc9c812807c06e969;p=xen.git xen/arm: dt: Relax hw domain mapping attributes to p2m_mmio_direct_c Since the hardware domain is a trusted domain, we extend the trust to include making final decisions on what attributes to use when mapping memory regions. For device-tree configured hardware domains, this patch relaxes the hardware domains mapping attributes to p2m_mmio_direct_c. This will allow the hardware domain to control the attributes via its S1 mappings. Signed-off-by: Edgar E. Iglesias Reviewed-by: Julien Grall Acked-by: Stefano Stabellini --- diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 63301e69f0..4fc467cb01 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -1330,7 +1330,7 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo, static int prepare_dtb(struct domain *d, struct kernel_info *kinfo) { - const p2m_type_t default_p2mt = p2m_mmio_direct_dev; + const p2m_type_t default_p2mt = p2m_mmio_direct_c; const void *fdt; int new_size; int ret;